from appium.webdriver.common.appiumby import AppiumBy
from AppTest.page.base_page import BasePage


class NewApplyPage(BasePage):

    __INPUT_SEARCH = (AppiumBy.XPATH, "//*[@text='搜索模板名称']")
    __BUTTON_APPROVAL = (AppiumBy.XPATH, "//*[@text='我审批的']")

    def template_search(self,):
        self.do_click(self.__INPUT_SEARCH)

    def to_approval(self):
        self.do_click(self.__BUTTON_APPROVAL)



